package entity;

/**
 * @program: FinalExam
 * @description:用户表
 * @create: 2021-12-14 17:05
 * @Date 2021/12/14
 **/

public class User {
    private String id ;
    private String username;
    private String password;
    private String realname;
    private int status;
    private String gmt_create;
    private String gmt_modify;
    private int is_delete;
/*user.getId(),"******","******",user.getRealname(),user.getStatus(),user.getGmt_create(),user.getGmt_modify()*/
    public User() {
    }

    public User(String id, String username, String password, String realname, int status, String gmt_create, String gmt_modify) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.realname = realname;
        this.status = status;
        this.gmt_create = gmt_create;
        this.gmt_modify = gmt_modify;
    }

    public User(String id, String username, String password, String realname, int status, String gmt_create, String gmt_modify, int is_delete) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.realname = realname;
        this.status = status;
        this.gmt_create = gmt_create;
        this.gmt_modify = gmt_modify;
        this.is_delete = is_delete;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getGmt_create() {
        return gmt_create;
    }

    public void setGmt_create(String gmt_create) {
        this.gmt_create = gmt_create;
    }

    public String getGmt_modify() {
        return gmt_modify;
    }

    public void setGmt_modify(String gmt_modify) {
        this.gmt_modify = gmt_modify;
    }

    public int getIs_delete() {
        return is_delete;
    }

    public void setIs_delete(int is_delete) {
        this.is_delete = is_delete;
    }

    @Override
    public String toString() {
        return "用户信息：" +
                "编号:'" + id + '\'' +
                ", 账号:'" + username + '\'' +
                ", 密码:'" + password + '\'' +
                ", 真实姓名:'" + realname + '\'' +
                ", 创建时间:'" + gmt_create + '\'' +
                ", 修改时间:'" + gmt_modify + '\'';
    }
}
